<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--系统管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <!-------------开关按钮css-------------->
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrapSwitch.css">
    <link rel="stylesheet" href="__STATIC_URL__/static/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <link rel="stylesheet" href="__STATIC_URL__/static/css/addmchat.css"/>
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="__STATIC_URL__/static/js/bootstrapSwitch.js"></script>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
    <script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=KNPBZ-RXKWI-SJJGI-5S3HH-AGDS6-Q6BDW"></script>

</head>
<body>
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    <div class="panel-group left-side" id="accordion">
        {if condition="checkPath('index/index')"}
        <div class="panel panel-default panelborder">
            <a href="{:url('index/index')}" class="act">
                <div class="panel-heading f-Index f-index">
                    <span class="glyphicon glyphicon-home pre-icon"></span>首页
                </div>
            </a>
        </div>
        {/if}
        {if condition="checkPath('System/mach_empty1')"}
        <div class="panel panel-default panelborder">
            <a data-toggle="collapse" data-parent="#accordion" href="#collapsesystem" class="act">
                <div class="panel-heading f-Auth f-category f-agentlevel f-permis f-userlist f-wx_menu">
                    <span class="glyphicon glyphicon-cog pre-icon"></span>系统设置
                    <span class="glyphicon glyphicon-chevron-down next-icon"></span>
                </div>
            </a>
            <div id="collapsesystem" class="panel-collapse collapse">
                <div class="panel-body pad0 light ">
                    <ul>
                        {if condition="checkPath('Auth/menu')"}
                        <li class="child-category Auth-index" id="menu"><a href="{:url('auth/index')}">菜单管理</a></li>
                        {/if}
                        {if condition="checkPath('Auth/role')"}
                        <li class="child-category Auth-role" id="role"><a href="javascript:void(0)">角色管理</a></li>
                        {/if}
                        {if condition="checkPath('Auth/log')"}
                        <li class="child-category" id="log"><a href="javascript:void(0)">操作日志</a></li>
                        {/if}
                    </ul>
                </div>
            </div>
        </div>
        {/if}
    </div>
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading mgl15 mgr15">
            <ol class="breadcrumb">
                <li>
                    当前位置是&nbsp;:&nbsp;系统管理
                </li>
                <li class="active" style="color: #02b87f;"> 菜单管理</li>
            </ol>
        </div>
        <div class="panel panel-default mgl15 mgr15">
            <div class="panel-heading addCharts" style="background:#ededed;">菜单管理</div>
            <div class="panel-body">
                <div style="padding:0px 15px;">
                    <iframe id="ifm" frameborder=0 width=100% style='min-height:800px;' marginheight=0 marginwidth=0
                            scrolling=yes src={:url('auth/menu')}></iframe>
                </div>
            </div>
        </div>
        {include file='public/footer'/}
    </div>
</section>

<script>
    $('#role').click(function () {
        $('#ifm').attr("src", "{:url('auth/role')}");
        $('.child-category').removeClass('child-active');
        $('#role').addClass('child-active')

    });
    $('#menu').click(function () {
        $('.child-category').removeClass('child-active');

        $('#ifm').attr("src", "{:url('auth/menu')}");
        $('#menu').addClass('child-active')

    });
    $('#log').click(function () {
        $('.child-category').removeClass('child-active');

        $('#ifm').attr("src", "{:url('auth/log')}");
        $('#log').addClass('child-active')

    });
    $('#user').click(function () {
        $('.list_item a').removeClass('hover');

        $('#ifm').attr("src", "{:url('auth/userlist')}");
        $('#user').addClass('hover')

    });
    $('#item').click(function () {
        $('.list_item a').removeClass('hover');
        $('#ifm').attr("src", "{:url('dict/dicttypelist')}");
        $('#item').addClass('hover')

    })
    $('#app').click(function () {
        $('.list_item a').removeClass('hover');
        $('#ifm').attr("src", "{:url('auth/appsetting')}");
        $('#app').addClass('hover')

    })
</script>


</body>

</html>


